from django.db import models


# Create your models here.
class ProductTypeModel(models.Model):
    type = models.CharField(max_length=50, blank=True, verbose_name='产品类型')
    type_en = models.CharField(max_length=50, blank=True, verbose_name='英文产品类型')

    def __str__(self):
        return self.type

    class Meta:
        db_table = 't_product_type'
        verbose_name = '产品类型'
        verbose_name_plural = '产品类型'


class CommonTypeModel(models.Model):
    type = models.CharField(max_length=50, blank=True, verbose_name='常识类型')
    type_en = models.CharField(max_length=50, blank=True, verbose_name='英文常识类型')

    def __str__(self):
        return self.type

    class Meta:
        db_table = 't_common_type'
        verbose_name = '常识类型'
        verbose_name_plural = '常识类型'
